# -*- coding:utf-8 -*-
# @Time:2024/4/1921:01
# @Author:miuzg
# @FileName:new test2.py
# @Software:PyCharm
class Person:

    @staticmethod
    def sleep():
        print('this is staticmethod')


# 非绑定的方法要用类.方法名()
Person.sleep() # this is staticmethod
# 通过对象调用
Person().sleep()